import 'package:flutter/material.dart';
import 'package:yysk_app/utils/colors.dart';
import 'package:yysk_app/utils/helper.dart';

class AppBarTitleWidget extends StatelessWidget {
  final String title;
  final Color? backgroundColor;
  const AppBarTitleWidget({
    super.key,
    required this.title,
    this.backgroundColor,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      color: backgroundColor ?? AppColors.backgroundColor,
      margin: EdgeInsets.only(right: (16.px + 36)),
      child: Center(
        child: Text(
          title,
          style: TextStyle(color: AppColors.fontColorBlack, fontSize: 18.px),
        ),
      ),
    );
  }
}
